package com.dslcode.cloud.common.exception;

import lombok.Data;

/**
 * Created by dongsilin on 2017/8/26.
 */
@Data
public class CommonException extends RuntimeException {

    private int code;


    public CommonException(int code) {
        this.code = code;
    }

    public CommonException(int code, String message) {
        super(message);
        this.code = code;
    }

}
